<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/9
 * Time: 19:39
 */

namespace app\admin\controller;


use think\Controller;

class Common extends Controller
{
    // 登录与权限判定
    public function initialize()
    {
        // 未登录
        if (!session('?platform')) {
            $this->redirect('login/index');
        }
    }
}